package pkmn.type;

public class Fighting extends Type{

    public Fighting(){
        this.setTypeEnum(TypeEnum.fighting);
    }

    @Override
    public double effective(Type type){
        switch (type.getTypeEnum()){
            case dark:
            case ice:
            case normal:
            case rock:
            case steel:
                return 2.0;
            case bug:
            case flying:
            case poison:
            case psychic:
                return 0.5;
            case ghost:
                return 0.0;
            default:
                return 1.0;
             
        }
    }
}